{extend name="admin@main"}

{block name="content"}

<form class="layui-card layui-form">
    <div class="layui-card-body">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
            <legend>个人信息</legend>
        </fieldset>

        <div class="layui-form-item">
            <label class="layui-form-label">姓名<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user_info.nickname|default=''}">
            </div>

            <label class="layui-form-label">性别<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user_info.gender == 1 ? '男' : ($user_info.gender == 2 ? '女' : '未知')}">
            </div>

        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">头像</label>
            <div class="layui-input-inline">
                <img data-tips-image src="{$user_info.avatar}" class="thumb-image" alt="">
            </div>

            <label class="layui-form-label">地区<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user_info.country|default=''}{$user_info.province|default=''}{$user_info.city|default=''}">
            </div>

        </div>


        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
            <legend>收货地址</legend>
        </fieldset>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <table class="layui-table">
                    <tr>
                        <th>收货人姓名</th>
                        <th>手机号</th>
                        <th>详细地址</th>
                        <th>默认地址</th>
                    </tr>
                    {notempty name='address_list'}
                        {foreach $address_list as $key=>$vo}
                            <tr>
                                <td>{$vo.name|default=''}</td>
                                <td>{$vo.mobile|default=''}</td>
                                <td>{$vo.province|default=''}{$vo.city|default=''}{$vo.area|default=''}{$vo.detail|default=''}</td>
                                <td>
                                    {if $vo.is_default eq 1}是{/if}
                                </td>
                            </tr>
                        {/foreach}
                    {/notempty}
                </table>
            </div>
        </div>



        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
            <legend>统计信息</legend>
        </fieldset>

        <div class="layui-form-item">
            <label class="layui-form-label">订单数量<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$order_info.order_count|default=''}">
            </div>

            <label class="layui-form-label">消费金额（元）<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$order_info.order_total|default=''}">
            </div>

        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">会员等级</label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user_info.level|default=''}">
            </div>

            <label class="layui-form-label">评价数<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user_info.comment|default=''}">
            </div>

        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">收藏专栏</label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user_info.article_collect|default=''}">
            </div>

            <label class="layui-form-label">收藏作品<br><span class="nowrap color-desc"></span></label>
            <div class="layui-input-inline">
                <input disabled class="layui-input" value="{$user_info.goods_collect|default=''}">
            </div>
        </div>




        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
            <legend>订单记录</legend>
        </fieldset>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <table class="layui-table">
                    <tr>
                        <th>订单编号</th>
                        <th>提交时间</th>
                        <th>用户昵称</th>
                        <th>订单金额</th>
                        <th>订单状态</th>
                        <th>操作</th>
                    </tr>
                    {notempty name='order_list'}
                    {foreach $order_list as $key=>$vo}
                    <tr>
                        <td>{$vo.order_no|default=''}</td>
                        <td>{$vo.create_time|default=''}</td>
                        <td>{$user_info.nickname|default=''}</td>
                        <td>{$vo.order_total|default=''}</td>
                        <td>
                            {if $vo.status eq $Think.const.ORDER_STATUS_CANCEL}已取消{/if}
                            {if $vo.status eq $Think.const.ORDER_STATUS_NEW}待支付{/if}
                            {if $vo.status eq $Think.const.ORDER_STATUS_PAY}待发货{/if}
                            {if $vo.status eq $Think.const.ORDER_STATUS_SEND}待收货{/if}
                            {if $vo.status eq $Think.const.ORDER_STATUS_EVAL}待评价{/if}
                            {if $vo.status eq $Think.const.ORDER_STATUS_FINISH}已完成{/if}
                        </td>
                        <td></td>
                    </tr>

                    {/foreach}
                    {/notempty}
                </table>
            </div>
        </div>








    </div>

    <div class="layui-form-item text-center">
        <button class="layui-btn layui-btn-danger" type='button'  onclick="window.history.back()">返 回</button>
    </div>
</form>
{/block}

{block name='style'}
<style>
    .layui-form-label{
        width: 10%;
    }
</style>
{/block}